﻿@model MODEL.ViewModel.Company

@{
    Layout = null;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <meta name="viewport" content="device-width" initial-scale="1" />
    <title>商家注册</title>
    <link rel="stylesheet" href="~/Content/themes/qgzx/style.css" />
    <link rel="stylesheet" href="~/Content/themes/qgzx/merchant1.css" />
    <link rel="stylesheet" href="~/Content/themes/qgzx/merchant.jquery.css" />

    <style>
        .user_form {
            zoom: 1;
        }

            .user_form:after {
                visibility: hidden;
                display: block;
                font-size: 0;
                content: " ";
                clear: both;
                height: 0;
            }

            .user_form select,
            .user_form .formErrorContent {
                padding-left: 10px;
                line-height: 24px;
            }
    </style>

    <script src="~/Scripts/qgzx/jquery-1.7.2.min.js"></script>
    <script src="~/Scripts/qgzx/jquery.validationEngine-zh_CN.js"></script>
    <script src="~/Scripts/qgzx/jquery.validationEngine.min.js"></script>
    <script>

        $.validationEngineLanguage.allRules.ajaxVerify = {
            "url": "phpajax/ajaxValidateVerify.php",
            "extraData": "name=eric",
            "alertTextOk": "<strong style='color:#090;'>√<strong>",
            "alertText": "<strong>×</strong>",
            "alertTextLoad": ""
        };

        jQuery(document).ready(function () {
            // binds form submission and fields to the validation engine
            jQuery("#user_form").validationEngine({
                scroll: false,
                //binded:false,
                //showArrow:false,
                promptPosition: "centerRight",
                maxErrorsPerField: 1,
                showOneMessage: true,
                addPromptClass: "formError-noArrow formError-text",
                custom_error_messages: {
                    "#pwd": {
                        "minSize": {
                            "message": "* 密码不得少于 6 位，建议使用英文与数字组合"
                        }
                    }
                }
            });
        });
    </script>


</head>
<body onload="createYZCode()">
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
@using (Html.BeginForm("Register_2", "Home", "post"))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    
    <div class="merchant-head">
        <div class="merchant-top">
            <div class="merchant-logo">
                <img src="/images/merchant-logo.png" height:50px width:390px>
            </div>
            <div class="merchant-logo1">
                <p>单位注册</p>
            </div>
        </div>

    </div>
    <div class="loading">
    </div>
    <div class="container">
        <form action="" method="post" id="user_form" class="user_form formular">
            <div class="container_mg">
                <span class="sp">用户名：</span>
                @Html.EditorFor(model => model.LoginName,new {@class = "text validate[required]", @name = "name"})
                @*<input type="text" class="text validate[required]" name="name">*@
            </div>
            <div class="container_mg">
                <span class="sp">登录密码：</span>
                @Html.EditorFor(model => model.LoginPassword,new{@class = "text validate[required,minSize[6],maxSize[20]]",@name="password",@id="pwd"})
                @*<input type="password" class="text validate[required,minSize[6],maxSize[20]]" name="password" id="pwd">*@
            </div>
            <div class="container_mg">
                <span class="sp">确认密码：</span>
                <input type="password" class="text validate[condRequired[pwd],equals[pwd]]" name="">
            </div>
            <div class="container_mg">
                <span class="sp">验证码：</span>
                <input type="text" id="input" class="text1 validate[required,ajax[ajaxVerify]]" name="" data-prompt-position="center:246,35,0,0">
                <input type="button" id="YZcode" onclick="createYZCode()" /><a onclick="createYZCode()">&nbsp;看不清，换一张</a>
            </div>

            <div class="container_mg">
                <div class="box">
                    <input type="checkbox" class="validate[required]" id="agree" name="agree" data-prompt-position="centerRight:250,0">
                    <label for="agree">
                        <small>我已阅读并接受</small>
                        <a href="/home/guidance"> <strong>《勤工助学协议》</strong></a>
                    </label>
                </div>
            </div>
            <div class="container_mg">
                <span class="sp"></span>
                <input type="submit" name="btn" style="cursor:pointer;" onclick="validate()" class="text merchant-btn" value="">
            </div>
            <div></div>
        </form>
    </div>
}
</body>
</html>